package com.java.lang;

import java.io.IOException;


public class SystemCommand {
	public static void main(String[] args) {

		systemCommand();

	}

	private static void systemCommand() {
		String s="AsadsadA";
		StringBuffer sb=new StringBuffer("abcdef");
		System.out.println(sb.reverse());
		Integer i=0;
		System.out.println(i.compareTo(-1));
		System.out.println(i.compare(2, 2));
		
		System.out.println(10e3);
		Runtime runtime=Runtime.getRuntime();
		try {
			runtime.exec("calc");
			runtime.exec("notepad");
			System.out.println(runtime.totalMemory());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}


}
